#!/bin/bash
# 安装dart

echo "quantum" | passwd --stdin root
sed -i "s/PasswordAuthentication no/PasswordAuthentication yes/" /etc/ssh/sshd_config
systemctl restart sshd

# 安装rsync
yum -y install rsync

# 安装dart（2.18.6）
wget https://storage.googleapis.com/dart-archive/channels/stable/release/2.18.6/sdk/dartsdk-linux-x64-release.zip
unzip dartsdk-linux-x64-release.zip -d /opt
rm -f dartsdk-linux-x64-release.zip
echo "PATH=\$PATH:/opt/dart-sdk/bin" >> /etc/bashrc

/opt/dart-sdk/bin/dart ~/main.dart